﻿using System.Runtime.CompilerServices;
using Flux.Mvvm.ComponentModel;

namespace Flux.Mvvm.ViewModels
{
	public abstract class ViewModel
		: NotificationObject, IViewModel
	{
		protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "none")
		{
			OnPropertyChanged(propertyName);
		}

		protected void NotifyPropertyChanging([CallerMemberName] string propertyName = "none")
		{
			OnPropertyChanged(propertyName);
		}
	}
}